<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('隐患列表')" />
	<link th:href="@{/common/css/public.css}" rel="stylesheet" />
	<link th:href="@{/common/css/style.css}" rel="stylesheet" />
</head>
<body class="up_lsit_body">
<div class="up_list_content">
	<!--list top start-->
	<div class="up_list_top">
				<span class="up_list_active">
					待办理
				</span>
				<span>
					已办理
				</span>
				<span>
					我发起的
				</span>
		<div class="up_list_sx"><a href="/hidden/search">筛选</a></p></div>
	</div>
	<div class="list_bod">
		<!--列表start-->
		<ul class="list_nav list_nav_block">
			<li th:if="${data1==null}">
				<!--暂无数据start-->
				<div class="list_no">
					<img src="/common/images/no.png" />
					暂无数据
				</div>
			</li>
			<li th:each="hidden,hiddenStat:${data1}">
				<div class="list_nav_top">
					<span class="list_nav_zt list_nav_zt_one fleft" th:if="${hidden.Status == 0}">未提交</span>
					<span class="list_nav_zt list_nav_zt_two fleft" th:if="${hidden.Status == 1}">审核中</span>
					<span class="list_nav_zt list_nav_zt_three fleft" th:if="${hidden.Status == 2}">待整改</span>
					<span class="list_nav_zt list_nav_zt_four fleft" th:if="${hidden.Status == 3}">待复查</span>
					<span class="list_nav_zt list_nav_zt_five fleft" th:if="${hidden.Status == 4}">延期待审批</span>
					<span class="list_nav_zt list_nav_zt_six fleft" th:if="${hidden.Status == 5}">审核未通过</span>
					<span class="list_nav_zt list_nav_zt_seven fleft" th:if="${hidden.Status == 6}">复查未通过</span>
					<span class="list_nav_zt list_nav_zt_eight fleft" th:if="${hidden.Status == 7}">已闭环</span>
					<span class="list_nav_time fright" th:text="'检查时间：'+ ${hidden.FindDate}"></span>
					<div class="clear_both"></div>
				</div>
				<div class="list_nav_desc">
					<input th:value="${hidden.Status}" type="hidden" class="status">
					<input th:value="${hidden.ID}" type="hidden" class="id">
					<font>责任人：</font>
					<span th:text="${hidden.ResUserName}">姜俊赤</span>
					<div class="clear_both"></div>
					<font>部&nbsp;&nbsp;&nbsp;门：</font>
					<span th:text="${hidden.ResOrganizationName}">储运中心</span>
					<div class="clear_both"></div>
					<font>描&nbsp;&nbsp;&nbsp;述：</font>
					<span class="list_nav_desc_cont" th:text="${hidden.HDName}">姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜</span>
					<div class="clear_both"></div>
				</div>
				<div class="list_nav_foot" th:if="${hidden.Status == 2 || hidden.Status == 6}">
							<span class="list_nav_zgleft"><a >
								<input th:value="${hidden.Status}" type="hidden" class="status">
								<input th:value="${hidden.ID}" type="hidden" class="id">
									<icon class="list_icon icon_one"></icon>整改
								</a></span>
					<span class="list_nav_zgcenter"><a >
								<input th:value="${hidden.Status}" type="hidden" class="status">
								<input th:value="${hidden.ID}" type="hidden" class="id">
								<input value="1" type="hidden" class="rectifyStatus">
									<icon class="list_icon icon_two"></icon>签转
								</a></span>
					<span class="list_nav_zgright"><a >
								<input th:value="${hidden.Status}" type="hidden" class="status">
								<input th:value="${hidden.ID}" type="hidden" class="id">
								<input value="2" type="hidden" class="rectifyStatus">
									<icon class="list_icon icon_three"></icon>申请延期
								</a></span>
					<div class="clear_both"></div>
				</div>
			</li>
		</ul>
		<ul class="list_nav">
			<li th:if="${data2==null}">
				<!--暂无数据start-->
				<div class="list_no">
					<img src="/common/images/no.png" />
					暂无数据
				</div>
			</li>
			<li th:each="hidden,hiddenStat:${data2}">
				<div class="list_nav_top">
					<span class="list_nav_zt list_nav_zt_one fleft" th:if="${hidden.Status == 0}">未提交</span>
					<span class="list_nav_zt list_nav_zt_two fleft" th:if="${hidden.Status == 1}">审核中</span>
					<span class="list_nav_zt list_nav_zt_three fleft" th:if="${hidden.Status == 2}">待整改</span>
					<span class="list_nav_zt list_nav_zt_four fleft" th:if="${hidden.Status == 3}">待复查</span>
					<span class="list_nav_zt list_nav_zt_five fleft" th:if="${hidden.Status == 4}">延期待审批</span>
					<span class="list_nav_zt list_nav_zt_six fleft" th:if="${hidden.Status == 5}">审核未通过</span>
					<span class="list_nav_zt list_nav_zt_seven fleft" th:if="${hidden.Status == 6}">复查未通过</span>
					<span class="list_nav_zt list_nav_zt_eight fleft" th:if="${hidden.Status == 7}">已闭环</span>
					<span class="list_nav_time fright" th:text="'检查时间：'+ ${hidden.FindDate}"></span>
					<div class="clear_both"></div>
				</div>
				<div class="list_nav_desc">
					<input th:value="${hidden.Status}" type="hidden" class="status">
					<input th:value="${hidden.ID}" type="hidden" class="id">
					<font>责任人：</font>
					<span th:text="${hidden.ResUserName}">姜俊赤</span>
					<div class="clear_both"></div>
					<font>部&nbsp;&nbsp;&nbsp;门：</font>
					<span th:text="${hidden.ResOrganizationName}">储运中心</span>
					<div class="clear_both"></div>
					<font>描&nbsp;&nbsp;&nbsp;述：</font>
					<span class="list_nav_desc_cont" th:text="${hidden.HDName}">姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜</span>
					<div class="clear_both"></div>
				</div>
			</li>
		</ul>
		<ul class="list_nav">
			<li th:if="${data3==null}">
				<!--暂无数据start-->
				<div class="list_no">
					<img src="/common/images/no.png" />
					暂无数据
				</div>
			</li>
			<li th:each="hidden,hiddenStat:${data3}">
				<div class="list_nav_top">
					<span class="list_nav_zt list_nav_zt_one fleft" th:if="${hidden.Status == 0}">未提交</span>
					<span class="list_nav_zt list_nav_zt_two fleft" th:if="${hidden.Status == 1}">审核中</span>
					<span class="list_nav_zt list_nav_zt_three fleft" th:if="${hidden.Status == 2}">待整改</span>
					<span class="list_nav_zt list_nav_zt_four fleft" th:if="${hidden.Status == 3}">待复查</span>
					<span class="list_nav_zt list_nav_zt_five fleft" th:if="${hidden.Status == 4}">延期待审批</span>
					<span class="list_nav_zt list_nav_zt_six fleft" th:if="${hidden.Status == 5}">审核未通过</span>
					<span class="list_nav_zt list_nav_zt_seven fleft" th:if="${hidden.Status == 6}">复查未通过</span>
					<span class="list_nav_zt list_nav_zt_eight fleft" th:if="${hidden.Status == 7}">已闭环</span>
					<span class="list_nav_time fright" th:text="'检查时间：'+ ${hidden.FindDate}"></span>
					<div class="clear_both"></div>
				</div>
				<div class="list_nav_desc">
					<input th:value="${hidden.Status}" type="hidden" class="status">
					<input th:value="${hidden.ID}" type="hidden" class="id">
					<font>责任人：</font>
					<span th:text="${hidden.ResUserName}">姜俊赤</span>
					<div class="clear_both"></div>
					<font>部&nbsp;&nbsp;&nbsp;门：</font>
					<span th:text="${hidden.ResOrganizationName}">储运中心</span>
					<div class="clear_both"></div>
					<font>描&nbsp;&nbsp;&nbsp;述：</font>
					<span class="list_nav_desc_cont" th:text="${hidden.HDName}">姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜姜俊雄储运中心储运中心储运中心姜俊雄储运中心姜</span>
					<div class="clear_both"></div>
				</div>
			</li>
		</ul>
		<!--列表end-->
	</div>
</div>
</body>
<th:block th:include="include :: footer" />
<script>
    $(function() {
        var index = 0;
        $(".up_list_top span").click(function() {
            //获取点击的元素给其添加样式，讲其兄弟元素的样式移除
            $(this).addClass("up_list_active").siblings().removeClass("up_list_active");
            //获取选中元素的下标
			index = $(this).index();
            $(".list_nav").eq(index).addClass("list_nav_block").siblings().removeClass("list_nav_block");
        });

        //查看详情
		$(document).on("click",".list_nav_desc",function () {
		    var status = $(this).find(".status").val();
		    var id = $(this).find(".id").val();
		    location.href = "/hidden/details?status="+status+"&userId="+id+"&index="+index+"&isLeader="+$.userOperate.key("isLeader");
        });
        $(document).on("click",".list_nav_zgleft",function () {
            var status = $(this).find(".status").val();
            var id = $(this).find(".id").val();
            location.href = "/hidden/details?status="+status+"&userId="+id+"&index="+index+"&isLeader="+$.userOperate.key("isLeader");
        });
        $(document).on("click",".list_nav_zgcenter",function () {
            var status = $(this).find(".status").val();
            var id = $(this).find(".id").val();
            var rectifyStatus= $(this).find(".rectifyStatus").val();
            location.href = "/hidden/details?status="+status+"&userId="+id+"&index="+index+"&isLeader="+$.userOperate.key("isLeader")+"&rectifyStatus="+rectifyStatus;
        });
        $(document).on("click",".list_nav_zgright",function () {
            var status = $(this).find(".status").val();
            var id = $(this).find(".id").val();
            var rectifyStatus= $(this).find(".rectifyStatus").val();
            location.href = "/hidden/details?status="+status+"&userId="+id+"&index="+index+"&isLeader="+$.userOperate.key("isLeader")+"&rectifyStatus="+rectifyStatus;
        });
    });

    //监听返回
        $(function(){
            pushHistory();
            window.addEventListener("popstate", function(e) {
                location.href = "/hidden/home?openId="+$.userOperate.openId();
            }, false);
            function pushHistory() {
                var state = {
                    title: "title",
                    url: "#"
                };
                window.history.pushState(state, "title", "#");
            }
        });

</script>
</html>
